package com.itheima.reggie.service;

import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Page;

import java.util.List;

public interface DishService {

    Boolean save(DishDto dishDto);

    Page<DishDto> findByPage1(Integer page,Integer pageSize,String name);


    Page<DishDto> findByPage2(Integer page,Integer pageSize,String name);


    /**
     * 根据id去查询指定的菜品和多个口味
     * @param id
     * @return
     */
    DishDto findById(Long id);

    R<String> updateById(DishDto dishDto);


    Boolean updateStatedis(Long[] dis,Integer status);


    //Boolean updateStateable(Long[] ids);


    Boolean delete(Long[] ids);

    List<Dish> findByCategoryId(Long categoryId);

    List<DishDto> findByCategoryId(Long categoryId,Integer status,String name);

}
